package com.entity;

import java.io.Serializable;

/**
 * sharetype
 * @author 
 */
public class Sharetype implements Serializable {
    private Integer sharetypeid;

    private String sharetype;

    private static final long serialVersionUID = 1L;

    public Integer getSharetypeid() {
        return sharetypeid;
    }

    public void setSharetypeid(Integer sharetypeid) {
        this.sharetypeid = sharetypeid;
    }

    public String getSharetype() {
        return sharetype;
    }

    public void setSharetype(String sharetype) {
        this.sharetype = sharetype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Sharetype other = (Sharetype) that;
        return (this.getSharetypeid() == null ? other.getSharetypeid() == null : this.getSharetypeid().equals(other.getSharetypeid()))
            && (this.getSharetype() == null ? other.getSharetype() == null : this.getSharetype().equals(other.getSharetype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSharetypeid() == null) ? 0 : getSharetypeid().hashCode());
        result = prime * result + ((getSharetype() == null) ? 0 : getSharetype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sharetypeid=").append(sharetypeid);
        sb.append(", sharetype=").append(sharetype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}